// 导入封装好的axios
import request from '@/utils/request'
export function getInfo(token) {
  console.log(request)
}

// 用户登录
// formData: {mobile:'', password:''}
export function login(formData) {
  return request({
    url: '/sys/login',
    method: 'POST',
    data: formData
  })
}

// 获取用户个人资料
export function getProfile() {
  return request({
    url: '/sys/profile',
    method: 'POST'
  })
}

/**
 * @description: 获取用户头像
 * @param {*} id 用户id
 * @return {*}
 */
export function getUserDetailById(id) {
  return request({
    url: `/sys/user/${id}`
  })
}

export function logout() {
}
